package com.suning.sawp.po.bi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 
 * BI数据解析异常记录<br> 
 * 〈功能详细描述〉
 *
 * @author 12061818
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Entity(name = "BI_DAT_EXCEPTION_LOG")
public class BiDataExceptionLog implements Serializable{

    /**
     */
    private static final long serialVersionUID = 2811433086232291018L;

    private Long id;
    
    /**
     * 解析BI DAT文件的统计日期
     * yyyy-MM-dd
     */
    private String statisDate;
    
    /**
     * 发生异常的文件名称
     */
    private String biFileName;
    
    /**
     * 异常类型
     * 1-文件级别异常；2-行记录级别异常
     */
    private String exceptionType;
    
    /**
     * 异常信息描述
     */
    private String exceptionDesc;
    
    /**
     * 记录创建时间
     */
    private Date createTime;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "STATIS_DATE")
    public String getStatisDate() {
        return statisDate;
    }

    public void setStatisDate(String statisDate) {
        this.statisDate = statisDate;
    }

    @Column(name = "BI_FILE_NAME")
    public String getBiFileName() {
        return biFileName;
    }

    public void setBiFileName(String biFileName) {
        this.biFileName = biFileName;
    }

    @Column(name = "EXCEPTION_TYPE")
    public String getExceptionType() {
        return exceptionType;
    }

    public void setExceptionType(String exceptionType) {
        this.exceptionType = exceptionType;
    }

    @Column(name = "EXCEPTION_DESC")
    public String getExceptionDesc() {
        return exceptionDesc;
    }

    public void setExceptionDesc(String exceptionDesc) {
        this.exceptionDesc = exceptionDesc;
    }

    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    /**
     * 文件级别异常
     */
    public static final String FILE_EXCEPTION = "1";
    /**
     * 行记录级别异常
     */
    public static final String LINE_EXCEPTION = "2";
}
